package edu.java.lectures.lec06.interfaces;

public class InterfaceTest {

    public static void main(String[] args) {
	Kelesh lape = new Kelesh();
	printNoise(lape);

	lape.sniff();

	Parrot parrot = new Parrot();
	printNoise(parrot);

	KeleshNaKeleshite knk = new KeleshNaKeleshite();
	printNoise(knk);

	Snottу knkSniff = knk;
	knkSniff.sniff();

	Noisy knkNoisy = knk;
	knkNoisy.makeNoise();

	System.out.println(Kelesh.specialConst);
    }

    public static void printNoise(Noisy lape) {
	if (lape == null) {
	    return;
	}
	lape.makeNoise();
	// lape.sniff();
    }

}
